<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var  a1=prompt("请输入一个数获得它的最高位：");
			alert(a1.substring(0,1));
		</script>
	</head>
	<body>
	</body>
</html>
